package com.cmwa.solution.business.product.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;

import com.cmwa.solution.base.controller.BaseController;

import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.product.entity.TreFeeRateChangeVo;

import com.cmwa.solution.business.product.service.TreFeeRateChangeService;

/**
 * 招商财富产品线费率变动表控制器
 * 
 * @author ex-chenxh
 * @date 2019-02-27 10:33:48
 */
@Controller
@RequestMapping("/business/product")
public class TreFeeRateChangeController extends BaseController {

	private final static String JSP_PATH = "business/product/";
	@Resource
	private TreFeeRateChangeService treFeeRateChangeService;
		
	/**
	 * 跳转到列表页面
	 * @author ex-chenxh
	 * @date 2019-02-27 10:33:48
	 * @param model
	 * @return
	 */
	@RequestMapping("/treFeeRateChangeListView")
	public String treFeeRateChangeListView(ModelMap model) {
		return JSP_PATH + "treFeeRateChangeList";
	}
	
	
	@RequestMapping("/treFeeRateChangeListPage")
	@ResponseBody
	public Page<TreFeeRateChangeVo> treFeeRateChangeListPage(SearchParam param) {
		Page<TreFeeRateChangeVo> list = treFeeRateChangeService.treFeeRateChangeListPage(param);
		return list;
	}
	
		
}
